import { defineAsyncComponent } from "vue";
import { createRouter, createWebHashHistory } from "vue-router";

export default createRouter({
    history: createWebHashHistory(),
    routes: [
        {
            name: "home",
            path: "/:type*",
            component: defineAsyncComponent(
                () => import("@/view/container.vue"),
            ), // 内容区域
        },
        {
            name: "NotFound",
            path: "/:pathMatch(.*)*",
            component: defineAsyncComponent(
                () => import("@/component/NotFound.vue"),
            ), // 404未找到
        },
    ],
});
